package homework.homework2;

public class Car {
    private Engine engine;

    private Wheel wheel;

    private CarBody carBody;

    private CarWheel carWheel;

    private PaintCar paintCar;

    public Engine getEngine() {
        return engine;
    }

    public void setEngine(Engine engine) {
        this.engine = engine;
    }

    public Wheel getWheel() {
        return wheel;
    }

    public void setWheel(Wheel wheel) {
        this.wheel = wheel;
    }

    public CarBody getCarBody() {
        return carBody;
    }

    public void setCarBody(CarBody carBody) {
        this.carBody = carBody;
    }

    public CarWheel getCarWheel() {
        return carWheel;
    }

    public void setCarWheel(CarWheel carWheel) {
        this.carWheel = carWheel;
    }

    public PaintCar getPaintCar() {
        return paintCar;
    }

    public void setPaintCar(PaintCar paintCar) {
        this.paintCar = paintCar;
    }

    @Override
    public String toString() {
        return "Car{" +
                "engine=" + engine +
                ", wheel=" + wheel +
                ", carBody=" + carBody +
                ", carWheel=" + carWheel +
                ", paintCar=" + paintCar +
                '}';
    }
}
